Skip to content

ARROW-3363: [C++/Python] Add helper functions to detect scalar Python types#2659

Closed
xhochy wants to merge 3 commits into
apache:masterfrom
xhochy:ARROW-3363
Closed

ARROW-3363: [C++/Python] Add helper functions to detect scalar Python types#2659
xhochy wants to merge 3 commits into
apache:masterfrom
xhochy:ARROW-3363

Conversation

@xhochy

@xhochy xhochy commented Sep 29, 2018

Copy link
Copy Markdown
Member

No description provided.

@xhochy

xhochy commented Sep 29, 2018

Copy link
Copy Markdown
Member Author

Required for #2623

@kszucs

kszucs commented Sep 29, 2018

Copy link
Copy Markdown
Member

@xhochy clang-format fails

Comment thread python/pyarrow/types.pxi Outdated
return pyarrow_wrap_data_type(c_type)


def is_boolean_object(object obj):

@kszucs kszucs Sep 29, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming and/or placement in types module feels a bit odd.

pa.types.is_integer_object(pa.types.int16())  # False

Perhaps is_<type>_value?

OR

How about creating a pyarrow.inference module with is_bool, is_int, is_float functions?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the _value name ok

@xhochy

xhochy commented Sep 30, 2018

Copy link
Copy Markdown
Member Author

@xhochy clang-format fails

Once #2572 is merged, I'll add a docker-compose run clang-format. It's really annoying that this continuously breaks for me when brew updates clang-format.

@kszucs kszucs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kszucs

kszucs commented Sep 30, 2018

Copy link
Copy Markdown
Member

Sounds good, to run docker-compose run clang-format arrow must be attached as a volume though.

@kszucs

kszucs commented Sep 30, 2018

Copy link
Copy Markdown
Member

CI failure is related to wheel incompatibilities.

@kszucs kszucs closed this in 7a4b48c Sep 30, 2018
@xhochy xhochy deleted the ARROW-3363 branch September 30, 2018 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants